﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp5
{
    class Library
    {
        
            public Library(int id, string bookname, int price)
            {
                this.Id = id;
                this.BookName = bookname;
                this.Price = price;
            }
            public int Id { get; set; }
            public string BookName { get; set; }
            public int Price { get; set; }
            public void LibraryInfo()
            {
                Console.WriteLine("书的序号：{0}  书名：{1}  价格：{2}", this.Id, this.BookName, this.Price);


            }
        ~Library() 
        {
            
            Console.WriteLine("把书{ 0}丢了吧",BookName);
        }

        public int sum(int a,int b)
        {
        return a+b;
        }
        public string sum(string a,string b)
        {
        return a+b;
        }
        public double sum(double a,double b)
        {
        return a+b;
        }
        }
    }
